/**
 * 
 */
/**
 * @author HuXiaolong
 *
 */
package com.xxxx.game;



import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.RectF;

public interface ISprite
{
	// 0: live, 1: dying, 2: dead
	public final static int ISPRITE_STATE_LIVE = 0;
	public final static int ISPRITE_STATE_DYING = 1;
	public final static int ISPRITE_STATE_DEAD = 2;
	
	public void update();

	public void paint(Canvas canvas);
	
	public PointF getPosition();
	public void setPosition(PointF iPoint);

	public RectF getRect();
	public SizeF getSize();
	public PointF getCenter();
	
	public boolean isLiving();
	public void makedead();
	
	public int getZOrder();
	public void setZOrder(int nz);

	public Paint getPaint();
	public void setPaint(Paint paint);

	public ICanvasDrawing getDrawFunc();
	public void setDrawFunc(ICanvasDrawing cd);

	public IAnimation getSpriteAnimation();
	public void setSpriteAnimation(IAnimation animat);
}
